package com.mymain.demo.service;

import com.mymain.demo.entity.User;

import java.util.List;

/**
 * Author : JiangLinHan
 * Date : 2019/4/10
 * Time : 9:24
 **/
public interface UserService {
    public List<User> findAll();

    //查询id在num数值之后的
    public List<User> findAllByIdAfter(Integer num);

    //插入
    public void save(User user);

    //根据Id删除
    public void deleteById(Integer id);

    //根据id查找数据
    public User findAllById(Integer id);

    //修改user
    public void update(User user);

    public User findUserByUsername(String username);
}
